import {createRouter,createWebHistory,RouteRecordRaw} from 'vue-router'

const routes:Array<RouteRecordRaw> = [
    {
      path:'/',
      name:'首页',
      component: () => import('../views/Index.vue')
     }
 ]

 //不是通过new来创建的，通过createRouter方法创建，
const router = createRouter({
   routes,
   history:createWebHistory()
})

export default router